class Population < ActiveRecord::Base
  belongs_to    :town
  belongs_to    :county
  
  def Population.categories
    {
    1 => "Peasants",
    2 => "Burghers",
    3 => "Clergy"
    }
  end
  
  def category_name
    Population.categories[self.category]
  end
end
